<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test laydate</title>
    <script src="laydate/laydate.js"></script>
</head>
<body>
演示一：<input id="i1" placeholder="请输入日期" class="laydate-icon" >


<script>
    ;!function(){
        //设置皮肤
        laydate.skin('molv');

        //写时间控件的配置对象
        laydate({
            //需要设置皮肤的元素选择器
            elem: '#i1',
            festival: true,
            min: laydate.now(-1),
            max: laydate.now(+1),
            choose: function (datas) {
                alert(datas)
            }
        })

    }();
</script>
</body>
</html>